from s1 import login
class TestLogin:
    def test_username_password_ok(self):
        assert '登录成功'==login('admin','123456')


    def test_username_error(self):
        assert '登录失败' == login('hashah', '123456')


    def test_password_error(self):
        assert '登录失败' == login('admin', '123')
    def test_username_password_error(self):
        assert '登录失败'==login('hashah','123')
